package com.probox.common.core.exception;

import lombok.Data;

/**
 * @author panmou
 * @date 2022-05-18
 * 专门用于校验异常的
 */
@Data
public class ServiceException extends RuntimeException {
    private String code;  //异常对应的返回码
    private String message;  //异常对应的描述信息

    public ServiceException(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public ServiceException(String message) {
        this.message = message;
    }


}
